import SvgIcon from '@/components/SvgIcon/index.vue'

import {
  AppstoreOutlined,
  ArrowLeftOutlined,
  ArrowRightOutlined,
  CheckCircleOutlined,
  CloseOutlined,
  CloudServerOutlined,
  ClusterOutlined,
  ControlOutlined,
  CopyOutlined,
  DashboardOutlined,
  DeleteOutlined,
  DownloadOutlined,
  DownOutlined,
  EditOutlined,
  ExclamationCircleOutlined,
  FullscreenExitOutlined,
  FullscreenOutlined,
  ImportOutlined,
  InboxOutlined,
  InfoCircleOutlined,
  LockOutlined,
  LogoutOutlined,
  MacCommandOutlined,
  MenuFoldOutlined,
  MenuUnfoldOutlined,
  MinusCircleOutlined,
  PlusOutlined,
  ProjectOutlined,
  RedoOutlined,
  SaveOutlined,
  SearchOutlined,
  SelectOutlined,
  SettingOutlined,
  SyncOutlined,
  UnorderedListOutlined,
  UserOutlined,
} from '@ant-design/icons-vue'

const icons = {
  AppstoreOutlined,
  ArrowLeftOutlined,
  ArrowRightOutlined,
  CheckCircleOutlined,
  CloseOutlined,
  CloudServerOutlined,
  ClusterOutlined,
  ControlOutlined,
  CopyOutlined,
  DashboardOutlined,
  DeleteOutlined,
  DownloadOutlined,
  DownOutlined,
  EditOutlined,
  ExclamationCircleOutlined,
  FullscreenExitOutlined,
  FullscreenOutlined,
  ImportOutlined,
  InboxOutlined,
  InfoCircleOutlined,
  LockOutlined,
  LogoutOutlined,
  MacCommandOutlined,
  MenuFoldOutlined,
  MenuUnfoldOutlined,
  MinusCircleOutlined,
  PlusOutlined,
  ProjectOutlined,
  RedoOutlined,
  SaveOutlined,
  SearchOutlined,
  SelectOutlined,
  SettingOutlined,
  SyncOutlined,
  UnorderedListOutlined,
  UserOutlined,
}

export const registerGlobComp = app => {
  app.component('SvgIcon', SvgIcon)
  for (let key in icons) {
    app.component(key, icons[key])
  }
}
